#!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/14 18:24
# @Author  : Tina.du
# @File    : notice_task.py
# @Project description：

from common.robot import Ding
import datetime
import pytz
from apscheduler.schedulers.blocking import BlockingScheduler

run_time = datetime.datetime.now(pytz.timezone('PRC')).strftime("%Y-%m-%d %H:%M:%S")
print(run_time)
scheduler = BlockingScheduler(timezone="Asia/Shanghai")


def lunch():
    """
    提醒中午点饭
    :return:
    """
    remind = "朋友们,可以准备准备去吃饭啦～"
    Ding().send_message(f"饭点时间到了  {remind}")
    return remind


def dinner():
    """
    提醒晚上点饭
    :return:
    """
    link = 'http://hefan.youfantech.cn/w/#/login'
    Ding().send_message("点饭啦～")
    Ding().send_link(link)


def mi_family():
    """
    每周三提醒大家去全家抢卷
    :return:
    """
    Ding().send_message(f"去全家抢劵咯！")


def write_report():
    """
    提醒大家编写周报
    :return:
    """
    Ding().send_message(f"记得写周报～")
